#!/usr/bin/env python
import os, sys
from payment_class import Payment
#{{{def set_payment ( liwe, id_payment = 0, module = 'payment', id_obj = 0, uid = 0, payment = 0, payment_date = , mode = '', note = '', owner = 0, created =  ):
def set_payment ( liwe, id_payment = 0, module = 'payment', id_obj = 0, uid = 0, payment_value = 0, payment_date = '' , mode = '', note = ''   ):
	"""
        :INPUT:
                - id_payment:    SAFE_NUMBER
				- module:	SAFE_DB_STRING
				- id_obj:	SAFE_NUMBER
				- uid:	SAFE_NUMBER
				- payment_value:	SAFE_MONEY
				- payment_date:	SAFE_DATE
				- mode:	SAFE_DB_STRING
				- note:	SAFE_DB_STRING
        :PERMS:
                - create:   With this permission you can create/modify
	"""
	n = Payment ( liwe )
	resp = n.set_payment ( id_payment = id_payment, module = module, id_obj = id_obj, uid = uid, payment_value = payment_value, payment_date = payment_date, mode = mode, note = note )
	return { 'payment' : resp }

#}}}
#{{{def del_payment ( liwe, uids = "" ):
def del_payment ( liwe, ids = "" ):
	"""
    :INPUT:
        -ids: SAFE_DB_STRING
    :PERMS:
        - delete With this permission you can delete course
	"""
	n = Payment ( liwe )
	resp =  n.del_payment ( ids =  ids ) 
    
#}}}

